package com.example.demo.DAO;

import com.example.demo.Grade.Grades;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GradesDao {

    @Select("select * from grades where cname=#{cname}")
    Grades getgrades(String cname);
    @Select("select * from grades ")
    List<Grades> getAllgrades();


}
